#include <types.h>
#include <basic_types.h>
#include <api/libc/string.h>
#include <api/libtsi/db_3l.h> 
#include "sys_config.h"
#define MAX_COUNTRY 20
#define MAX_BAND_NUMBER  10
#define MAX_PARAM 4

//*************The definition of fourth element in every discontinuous band********************
//				Bit15~8						Bit7					Bit6~0					
//		end channel no. of this group band	   band type	  start channel no. of this group band		
//******************************************************************************
static const Band_param dvbt_countryband[MAX_COUNTRY][MAX_BAND_COUNT] __attribute__((section(".flash")))=
{       
			{{470000, 806000,6000,0x458e,0,0,0,0,0},//0 RS_REGION_TW
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0},
			{ 0,       0,       0,     0,   0,0,0,0,0}},
				
			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//1 RS_REGION_THAI
			{ 470000, 862000 , 8000 ,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},					 
			
			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//2 RS_REGION_VNM
			{ 470000,862000, 8000,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},
			
			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//3 RS_REGION_MYS
			{ 470000, 862000, 8000,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},
			
			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//4 RS_REGION_IDN
			{470000,862000,8000,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},

			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//5 RS_EGYPT
			{ 470000, 862000 , 8000 ,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},	
				
			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//6 RUS
			{ 470000, 862000 , 8000 ,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},					
				
			{{ 174000, 254000 , 8000 ,0xD04,0,0,0,0,0},//7 UKR
			{ 470000, 862000 , 8000 ,0x4595,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0},
			{   0,       0,     0,    0,0,0,0,0,0}},				
								
				
};

	//Martin@20150515		
/*			   
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Kaliningrad
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Moscow
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Samara
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Yekaterinburg
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Omsk
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Krasnoyarsk
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Irkutsk
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Yakutsk
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},					   
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Vladivostok
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia-Srednekolymsk
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},					   
	{{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},//Russia- Kamchatka
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0},
	{   0,       0,     0,    0,0,0,0,0,0}},
*/		
		
//*************The definition of fourth element in every discontinuous band********************
//				Bit15~8						Bit7					Bit6~0					
//		end channel no. of this group band	   band type	  start channel no. of this group band		
//******************************************************************************
/*
static const Band_param isdbt_countryband[MAX_COUNTRY][MAX_BAND_COUNT] __attribute__((section(".flash")))=
{///stanley wang 20050621
  //	changed by SN  for Alphabetically arranged 20050818
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
				   	
		{{ 174000, 216000 , 6000 , 0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		
		{{ 174000, 216000, 6000, 0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000, 6000,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},
		
		{{ 174000, 216000 , 6000 ,0xd07,0,0,0,0,0},//"Argntina"
		{ 470000, 806000 , 6000 ,0x458e,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0},
		{   0,       0,     0,    0,0,0,0,0,0}},

    //{{ 174000, 216000 , 6000 ,0x701,0,0,0,0,0},{470000, 806000,6000,0x458e,0,0,0,0,0},0,0,0,0,0,0,0,0},	       
};
*/
void get_isdbt_bandparam(UINT8 index, Band_param *buf)
{
/*
	UINT32 addr = 0;
    if(index >= MAX_COUNTRY)
        return;    
	addr = (UINT32)isdbt_countryband + index * (sizeof(Band_param)*MAX_BAND_NUMBER);

	MEMCPY(buf, (void*)addr, (sizeof(Band_param)*MAX_BAND_NUMBER));    
*/
}

void get_dvbt_bandparam(UINT8 index, Band_param *buf)
{
	UINT32 addr = 0;
    if(index >= MAX_COUNTRY)
        return;    
	addr = (UINT32)dvbt_countryband + index * (sizeof(Band_param)*MAX_BAND_NUMBER);

	MEMCPY(buf, (void*)addr, (sizeof(Band_param)*MAX_BAND_NUMBER));    
}

#ifdef POLAND_SPEC_SUPPORT 
void get_dvbt_bandparam_for_poland(Band_param *buf)
{
    Band_param buf1[MAX_BAND_COUNT];
    UINT16 i=0,j=0;

    for(j=0;j<MAX_BAND_COUNT;j++)
    {
       if((buf[j].band_type & 0x0080)==0x0080)
       {
        buf1[i]=buf[j];
        i++;
       }
        else
        continue;
    }
    MEMSET(buf,0,(sizeof(Band_param)*MAX_BAND_NUMBER));
    MEMCPY(buf, buf1, (sizeof(Band_param)*MAX_BAND_NUMBER)); 
 
}
#endif
